package com.lemon.gen.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 持久层对象，对应数据库
 *
 * @author 李猛
 * @since 2024-02-01
 */
@Getter
@Setter
@ToString
@TableName("gen_table")
public class TablePO implements Serializable {

    private static final long serialVersionUID = 1L;

    //ID主键
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    //生成的数据库表名
    private String tableName;

    //数据库表前缀
    private String tablePrefix;

    //数据库url
    private String url;

    //作者
    private String author;

    //包名
    private String packageName;

    //服务名
    private String serviceName;

    //web页面类型
    private Integer webType;

    //是否覆盖原文件 1是 0否
    private Integer fileOverride;

    //文件路径
    private String filePath;

    //创建者
    private Long createBy;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
